import Mock from 'mockjs'

Mock.mock('http://api.com/usr', {
  code: -1,
  msg: 'error',
  'data|10': [
    {
      name: '@cname',
      age: '@integer(1,20)',
      gender: '@boolean',
      phone: /^1[35-9]\d{9}$/
    }
  ]
})
